package com.transfer.conf;

public class FileTransferConfiguration {
  // 文件下载任务配置

  /* 默认的文件存储目录 */
  public static final String defaultFileStorageDir = FileTransferProperties.getString(
      "defaultFileStorageDir", "\\");
  /* 多线程模式下，默认的每个任务的线程数 */
  public static final int defaultNumThread = FileTransferProperties.getInt(
      "defaultNumThreadsPerTask", 3);
  /* 默认的线程睡眠时间 */
  public static final int sleepSeconds = FileTransferProperties.getInt("SleepSeconds", 10);
  /* 多线程模式下，默认的文件合并时的flush大小间隔 */
  public static final long mergeFlushSize = FileTransferProperties.getLong("mergeFlushSize",
      102400000);
  /* 传输模块线程池的大小 */
  public static final int fixedParallelism = FileTransferProperties.getInt("fixedParallelism", 20);
  /* 默认的每次下载buffer大小 */
  public static final int downloadBufferSize = FileTransferProperties.getInt("downloadBufferSize",
      1024);
  /* 默认的文件下载时flush到磁盘的size间隔 */
  public static final long flushSize = FileTransferProperties
      .getLong("flushSize", 1024 * 1024 * 10);
  /* 默认的任务重试次数 */
  public static final int maxRetry = FileTransferProperties.getInt("maxRetry", 10);

  // 文件上传任务配置
}
